home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / initrd.lz / initrd / scripts / init-top / usplash < prev   
Encoding:
Text File  |  2009-10-28  |  655 b   |  39 lines

  1. #!/bin/sh
  2.  
  3. OPTION=USPLASH
  4. PREREQ="framebuffer console_setup brltty"
  5.  
  6. prereqs()
  7. {
  8.     echo "$PREREQ"
  9. }
  10.  
  11. case $1 in
  12. prereqs)
  13.     prereqs
  14.     exit 0
  15.     ;;
  16. esac
  17.  
  18. SPLASH=false
  19. VERBOSE=true
  20.  
  21. for x in $(cat /proc/cmdline); do
  22.     case $x in
  23.     splash*)
  24.         SPLASH=true
  25.         ;;
  26.     nosplash*)
  27.         SPLASH=false
  28.             ;;
  29.     esac
  30. done
  31.  
  32. if [ $SPLASH = "true" ]; then
  33.     # Tell Upstart about usplash, so that it can synthesise a job.
  34.     # Relative paths are resolved relative to /dev/.initramfs; if we use
  35.     # an absolute path here, then we'll have trouble unlinking it later
  36.     # because our filesystem namespace will have gone away.
  37.     /sbin/usplash -p -c -t 60 --background --pidfile usplash.pid
  38. fi
  39.